package cn.edu.zut.score.service;

import cn.edu.zut.score.core.domain.PageResponse;
import cn.edu.zut.score.core.domain.RestResponse;
import cn.edu.zut.score.core.dto.request.ReplyAddRequest;
import cn.edu.zut.score.core.dto.request.ReplyPageRequest;
import cn.edu.zut.score.core.dto.response.ReplyResponse;
import cn.edu.zut.score.core.entity.Reply;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zby
 * @since 2021-06-25
 */
public interface IReplyService extends IService<Reply> {

    RestResponse<ReplyResponse> addReply(ReplyAddRequest replyAddRequest);

    RestResponse<PageResponse<ReplyResponse>> getCurrentTeacherAllReplys(ReplyPageRequest replyPageRequest);

    RestResponse<PageResponse<ReplyResponse>> getCurrentStudentAllReplys(ReplyPageRequest replyPageRequest);

    RestResponse<ReplyResponse> getReplyById(Long id);

}
